package cn.zn.modules.appoin.service.impl;

import cn.zn.modules.appoin.dao.AtrWeekWorkTimeDao;
import cn.zn.modules.appoin.entity.AtrWeekWorkTimeEntity;
import cn.zn.modules.appoin.service.AtrWeekWorkTimeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AtrWeekWorkTimeServiceImpl extends ServiceImpl<AtrWeekWorkTimeDao, AtrWeekWorkTimeEntity> implements AtrWeekWorkTimeService {

    @Override
    public List<AtrWeekWorkTimeEntity> findByWeek(String weekId) {
        return super.list(new QueryWrapper<AtrWeekWorkTimeEntity>().eq("WEEK_ID_", weekId));
    }
}
